//
//  PassAuditDetailViewController.swift
//  ParkManage
//
//  Created by Jalon on 9/28/20.
//  Copyright © 2020 diligrp. All rights reserved.
//

import UIKit

class PassAuditDetailViewController: BaseViewController {

    @IBOutlet weak var dateTimeLabel: UILabel!
    @IBOutlet weak var topContainerView: UIView!
    @IBOutlet weak var dividerView1: UIView!
    @IBOutlet weak var divederView2: UIView!
    @IBOutlet weak var middleContainerView: UIView!
    @IBOutlet weak var rejectButton: UIButton!
    @IBOutlet weak var passButton: UIButton!
    var type: AuditType!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        title = type == AuditType.pass ? "通行证详情" : "转离场详情"
        setUITheme()
    }
    
    override func viewDidLayoutSubviews() {

        topContainerView.setShadowWith(bounds: topContainerView.bounds)
        middleContainerView.setShadowWith(bounds: middleContainerView.bounds)
        dividerView1.width = Configs.Dimensions.screenWidth - 60
        divederView2.width = Configs.Dimensions.screenWidth - 60
        dividerView1.transLineToDash()
        divederView2.transLineToDash()
    }
    
    func setUITheme() {
        rejectButton.makeRoundedCorners(22.5)
        passButton.makeRoundedCorners(22.5)
    }
}
